]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Use g_object_notify_by_pspec()
authorNiels De Graef <nielsdegraef@gmail.com>
Mon, 29 Jul 2019 15:59:41 +0000 (17:59 +0200)
committerNiels De Graef <nielsdegraef@gmail.com>
Wed, 31 Jul 2019 17:35:03 +0000 (17:35 +0000)
commit8f3554ff3e2478cfd0b349db41f424152518260c
tree37574ec63d6391d3a5e342f4d2d405d94a39ec96
parent668128f8c9928fe1fed950cb2b643aa0d49a41e7
st: Use g_object_notify_by_pspec()

`g_object_notify()` actually takes a global lock to look up the property
by its name, which means there is a performance hit (albeit tiny) every
time this function is called. For this reason, always try to use
`g_object_notify_by_pspec()` instead.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/652
src/st/st-adjustment.c
src/st/st-bin.c
src/st/st-button.c
src/st/st-entry.c
src/st/st-icon.c
src/st/st-label.c
src/st/st-scroll-bar.c
src/st/st-scroll-view-fade.c
src/st/st-scroll-view.c
src/st/st-widget.c